home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / mailpaths.part1 < prev    next >
Encoding:
Internet Message Format  |  1994-04-02  |  7.2 KB

  1. Subject: How to Construct the Mailpaths File
  2. Newsgroups: news.lists,news.admin.misc,news.answers
  3. From: tale@uunet.uu.net (David C Lawrence)
  4. Date: 1 Apr 1994 02:14:09 -0500
  5.  
  6. Archive-name: mailpaths/part1
  7. Original-author: Gene Spafford (spaf@cs.purdue.edu)
  8. Comment: enhanced & edited until 5/93 by spaf@cs.purdue.edu (Gene Spafford)
  9. Last-change: 21 Mar 1994 by tale@uunet.uu.net (David C Lawrence)
  10.  
  11. UNIX News software after B-news version 2.10 -- including C news and INN --
  12. has been designed to make it simpler to submit articles to moderated
  13. newsgroups and to reply via mail to posted articles.  For these
  14. functions to work, the file "mailpaths" must exist in the news library
  15. and contain current information.  This file describes the syntax of
  16. the contents of the file and how to construct it for your B News or C
  17. News system.
  18.  
  19. INN's method is described in the moderators(5) and inn.conf(5) manual
  20. pages; if you do not have locally moderated groups to worry about it
  21. is probably easiest to simply define moderatormailer in inn.conf as
  22. one of the machines listed below.
  23.  
  24. Some systems may not work in precisely the manner described here.  In
  25. particular, some user-agent programs may consult a file of moderator
  26. addresses directly.  The system news administrator should consult the
  27. documentation and man pages to determine if this description applies
  28. to the local configuration and modify it accordiningly.
  29.  
  30. Syntax
  31. ------
  32. All lines in the file consist of a keyword followed by whitespace,
  33. followed by a printf-style format string which is used to encode a mail
  34. address.  The format string should be constructed so that there is a
  35. single "%s" in the field, and other information necessary to construct
  36. a valid address to the appropriate site (see below).
  37.  
  38. The keyword field consists of either the word "internet", the word
  39. "backbone", or some newsgroup pattern.  These are examined by the
  40. software to determine which format-string to use.  Note that the FIRST
  41. appropriate line matched is the one used -- thus, the "backbone"
  42. keyword line should be placed last in the line if regional or local
  43. moderated groups are supported.
  44.  
  45. Also note that the match software quits if it runs out of newsgroup
  46. pattern, and if the pattern present matches the newsgroup.  Thus,
  47. having the entries:
  48.     comp.foo        foo@nowhere.edu
  49.     comp.foo.bar    bar@someplace.org
  50. would always send mail to the moderator of "comp.foo" and not to the
  51. moderator of "comp.foo.bar", no matter which of the two newsgroups was
  52. specified!   For proper operation, you would need to list them thusly:
  53.     comp.foo.bar    bar@someplace.org
  54.     comp.foo        foo@nowhere.edu
  55.  
  56. Addresses that end up with both "!" and "@" symbols in the resulting
  57. address get converted so that only "!" symbols appear in the final
  58. address.  An address of the form "foo!bar!baz@barf" will get converted
  59. to "foo!bar!barf!baz" and then mailed.  This should work properly, for
  60. "dumb" mailers but you should test it to make sure; "smart" mailers
  61. should have the format fields encoded as a simple "%s". Note that *any*
  62. address with more than a single "@" in it is illegal.
  63.  
  64. Submissions to moderated groups
  65. -------------------------------
  66. When you attempt to post to a moderated newsgroup (indicated by the
  67. letter "m" in the 4th field of the "active" file for that group), 
  68. the action of "inews" is to mail the submission to the moderator.
  69. This is done by searching through "mailpaths" file for a keyword
  70. matching the newsgroup being posted to, or, by default, the keyword
  71. "backbone".  Matching occurs as in the "sys" file -- thus,
  72. "world" and "all" will also match everything, while "news" or 
  73. "news.all" will only match articles posted in the "news" category.
  74. This feature can be used to support local moderated groups.
  75.  
  76. Once a line has been matched, the name of the moderated group is
  77. transformed into an address.  This is done by first turning all the
  78. imbedded periods within the newsgroup name into hyphens (e.g.,
  79. "news.lists" becomes "news-lists") because many mailers mishandle
  80. addresses with periods in the username (periods are supposed to be
  81. delimiters only in the host/domain part of RFC822 addresses, but some
  82. mailers "overreact").  Next, the transformed group name is encoded into
  83. an address using the format-string present on the line matched from
  84. "mailpaths" and the article is mailed.  Thus, a posting to "news.lists"
  85. from a site with the line
  86.     backbone        emory!gatech!%s 
  87. in the mailpaths file would have the article mailed to
  88. "emory!gatech!news-lists".  Likewise, a line like
  89.     backbone    %s@gatech.edu
  90. would result in the article being mailed to "news-lists@gatech.edu".
  91. To make the mechanism for moderated postings simpler, a subset of the 
  92. best-connected sites (plus some others) have committed to keeping a complete
  93. up-to-date set of mail aliases for the moderated groups.  Therefore, to
  94. build this line in your "mailpaths" file, you need only construct
  95. an address to get the mail to one of these sites.  In turn, once the
  96. submission reaches that site, it will be forwarded on to the
  97. appropriate moderator's mailbox.
  98.  
  99. The sites currently maintaining these lists are given in the following
  100. list.  Pick the one that is "closest" to your site and use it in your
  101. "backbone" format string:
  102.  
  103.     ames.arc.nasa.gov        beaver.cs.washington.edu  cis.ohio-state.edu
  104.     decwrl.dec.com           linus.mitre.org           math.waterloo.edu
  105.     mcnc.org                 moderators.univ-lyon1.fr  ncar.ucar.edu
  106.     pipex.co.uk              rutgers.edu               tektronix.tek.com
  107.     ucsd.edu                 uunet.uu.net
  108.  
  109. All EUnet customers should use their feeding EUnet news server as
  110. 'backbone' for posts to moderated groups.  For example, German EUnet
  111. customers would use news.germany.eu.net.  Non-EUnet sites in Europe
  112. may forward through pipex.co.uk (aka pipex.net).
  113.  
  114. Internet Mail
  115. -------------
  116. If you define the "INTERNET" flag when you build 2.11 news, the
  117. software will use the internet-style "From:" header when addressing
  118. replies mailed to postings.  If your mailer does not have this capability,
  119. you can still (possibly) achieve the same thing by defining the
  120. "internet" line in your "mailpaths" file to forward such mail to
  121. a host that does have a mailer which understands internet-style addresses.
  122.  
  123. The format of this line is very similar to the "backbone" line.  As an
  124. example, consider:
  125.     internet    emory!gatech!mcnc!%s
  126. Thus, if "INTERNET" was defined when this version of news was built,
  127. any reply to a news article would not travel along the "Path:", but
  128. would instead be sent to "mcnc" for interpretation and remailing.
  129. For example, to reply to this article, the mail would be sent to
  130. "emory!gatech!mcnc!tale@uunet.uu.net"  ->
  131. "emory!gatech!mcnc!uunet.uu.net!tale"
  132.  
  133. Note:  This is being provided as a service to sites which do not
  134. have routing mailers or which have difficulty replying to articles.
  135. It is *NOT* intended for everyone to pass mail to other sites to send.
  136. Excessive use of this feature may result in severe problems for
  137. the sites doing the relaying, so please simply define this field to
  138. be "%s" if your mailer understands domain-style (internet-style)
  139. addressing.
  140.  
  141. The following sites will accept internet-format mail for forwarding:
  142.  
  143.     beaver.cs.washington.edu    decwrl.dec.com  kddlab.kddlabs.co.jp
  144.     math.waterloo.edu           mcnc.org        ucsd.edu
  145.     uunet.uu.net
  146.  
  147.